package com.lebang.feign.fallback;

import com.lebang.feign.BookTimeFeign;
import com.lebang.model.RequestUserInfo;
import com.lebang.model.back.Result;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

import static com.lebang.feign.draw.CommonFallBack.FAIL_JSON;
import static com.lebang.feign.draw.CommonFallBack.FAIL_RESULT;

/**
 * @Author: ljx
 * @Date: 2020/11/02
 * @Version 1.0
 */
@Component
public class BookTimeFallback implements BookTimeFeign {
    @Override
    public JsonData configList(RequestUserInfo userInfo) {
        return FAIL_JSON;
    }

    @Override
    public Result<Integer> bookTimeData(RequestUserInfo userInfo, Integer configId) {
        return FAIL_RESULT;
    }

    @Override
    public Result<Integer> bookTimePull(RequestUserInfo userInfo, Integer recordId) {
        return FAIL_RESULT;
    }

    @Override
    public JsonData addTimeRecord(RequestUserInfo request, Long time, String bookId) {
        return FAIL_JSON;
    }

    @Override
    public JsonData getBookTime(RequestUserInfo request) {
        return FAIL_JSON;
    }
}
